export * from './modules';
export * from './common';
export * from './fetches';

/**
 * 获取系统主题
 *
 * @returns {string} dark | light
 */
export function getSystemTheme() {
  return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
}
